package com.ab.abrpc.registry;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class LocalRegistry {
    private static final Map<String,Class<?>>map=new ConcurrentHashMap<>();
    public static void registry(String serviceName,Class<?>implClass ){
        map.put(serviceName,implClass);
    }
    public static Class<?> get(String serviceName){
        return map.get(serviceName);
    }
    public static void removeMap(String serviceName){
        map.remove(serviceName);
    }
}
